#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-12-3 15:09
from appium import webdriver

"""
小demo，用于验证环境是否正确
"""
desired_caps = {'platformName': 'Android',
                'platformVersion': '6.0',
                'deviceName': 'emulator-5554',
                'appPackage': 'com.android.settings',
                'appActivity': 'com.android.settings.Settings'}
# com.android.settings/com.android.settings.Settings

driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
print("启动【设置】应用")
driver.quit()
